package com.jt.demo7_di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestPerson {
    public static void main(String[] args) {
        String resources = "spring_di.xml";
        ApplicationContext context=new ClassPathXmlApplicationContext(resources);
        Person person = context.getBean(Person.class);
        person.sayHi();
        person.toGo();
    }


}
